Repository navigation
docs(ci): explain drift-gate failure semantics and badges - #362
Merged
Merged
Conversation
Document when vg scan exits 2 versus warns, which release to pin in GitHub Actions, and how to embed the hosted DriftScore badge. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Keep the CI drift-gate failure semantics, release pins, and DriftScore badge notes while taking the rest of main. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Teams copying a Vibgrate drift gate into CI could see the workflow YAML and still not tell when the job fails, when it only warns, which release to pin, or how a DriftScore badge is added to a README.
examples/github-actions/README.mdis now enough to add a basic gate to an empty repository:driftscore-ci.yml, installing pinned@vibgrate/cli@2026.1005.1and runningvg scan.--fail-on error|warn,--drift-budget,--drift-worsening, anddriftBudget.modewarn/enforce/shadow. Exit2fails the GitHub Actions job. Warn and shadow print the breach and exit0.vibgrate-action/v2026.1005.1, and the scannerimage-tag. Unpinnednpx @vibgrate/clitracks npmlatest.drift.scorefor runs that stay credential-free.The example stays local:
contents: read, noVIBGRATE_DSN, no secrets. The report is uploaded withif: always()because the JSON is written before a gate exits.Related issues
Closes #152
Checklist
pnpm testpassespnpm lintis cleanpnpm typecheckis cleangraph.json/ report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)git commit -s, DCO)Notes for reviewers
Documentation only. Gate behaviour is taken from
vg scananddriftBudgetas they work today (src/reporting/commands/scan.ts,src/reporting/drift-budget-gate.ts). The badge section uses the public URL scheme at https://vibgrate.com/badges; this workflow does not publish a badge and does not invent one.Locally this revision passed
pnpm typecheck,pnpm lint(0 errors; existing unused-var warnings insrc/only), andpnpm test(5008 passed). CI still runs the same checks.